//
//  HomeRecommendCollectionCell.m
//  huashiedu
//
//  Created by oceans on 2018/8/26.
//  Copyright © 2018年 hema. All rights reserved.
//

#import "HomeRecommendCollectionCell.h"

@implementation HomeRecommendCollectionCell

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setup];
    }
    return self;
}

- (void)setup {
    
    self.imageView = [[UIImageView alloc] init];
    [self addSubview:_imageView];
    [_imageView setTranslatesAutoresizingMaskIntoConstraints:NO];
    [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_imageView]-0-|" options:kNilOptions metrics:nil views:NSDictionaryOfVariableBindings(_imageView)]];
    [self addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[_imageView]-0-|" options:kNilOptions metrics:nil views:NSDictionaryOfVariableBindings(_imageView)]];
}

@end
